﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ReportingServices.DeploymentCenter.Core
{
    public class ServiceConfiguration
    {
        #region Properties

        /// <summary>
        /// This property should be set with the Report Server Name or IP address
        /// </summary>
        public string ReportServer { get; set; }

        /// <summary>
        /// This is a read only property that returns the http formatted report server url based on the ReportServer name property.
        /// </summary>
        public string ReportServerUrl
        {
            get
            {
                return String.Format("http://{0}/ReportServer/ReportService2010.asmx", ReportServer);
            }
        }

        public string Domain { get; set; }

        public string UserName { get; set; }

        public string Password { get; set; }

        #endregion

        #region Constructors

        public ServiceConfiguration(string reportServer, string domain, string userName, string password)
        {
            ReportServer = reportServer;
            Domain = domain;
            UserName = userName;
            Password = password;
        }

        #endregion
    }
}
